package com.practice.Demo6_17;

import java.io.Serializable;

public class Book implements Serializable {
    private int bookno;//书籍编号
    private String name;//书籍名称
    private Double price;//书籍价格
    private int count;//书籍库存

    @Override
    public String toString() {
        return
                "bookno=" + bookno +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", count=" + count
                ;
    }

    public int getBookno() {
        return bookno;
    }

    public void setBookno(int bookno) {
        this.bookno = bookno;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Book(int bookno, String name, Double price, int count) {
        this.bookno = bookno;
        this.name = name;
        this.price = price;
        this.count = count;
    }

    public Book() {
    }
}
